UserDefinedDistributionCalculator
Allows user provided flags for IsSortedAscending and IsEvenlySpaced, flags which are used to determine the correct algorithm for sorting, searching and data-compression in Ultrachart. Overridding these flags allows for faster operation where the data distribution is known in advance
Erbt von: BaseDataDistributionCalculator<T>
Konstruktoren
UserDefinedDistributionCalculator()
Initializes a new instance of the UserDefinedDistributionCalculator class.
Eigenschaften
IsEvenlySpaced : bool
Gets or sets if the data is evenly spaced, within a visual epsilon (typically 1.0/8000.0 of the default spacing)
IsSortedAscending : bool
Gets or sets if the data is sorted
Methoden
OnAppendXValue(ISeriesColumn<T>, T, bool)
Called when X Values are appended. Should update the Data Distribution flags
- xValues
- The x values.
- newXValue
- The new x value.
- acceptsUnsortedData
- if set to true the series accepts unsorted data.
OnAppendXValues(ISeriesColumn<T>, int, IEnumerable<T>, bool)
Called when X Values are appended. Should update the Data Distribution flags
- xValues
- The x values.
- countBeforeAppending
- newXValues
- acceptsUnsortedData
- if set to true the series accepts unsorted data.
OnInsertXValue(ISeriesColumn<T>, int, T, bool)
Called when X Values are inserted. Should update the Data Distribution flags
- xValues
- The x values.
- indexWhereInserted
- newXValue
- The new x value.
- acceptsUnsortedData
- if set to true the series accepts unsorted data.
OnInsertXValues(ISeriesColumn<T>, int, int, IEnumerable<T>, bool)
Called when X Values are inserted. Should update the Data Distribution flags
- xValues
- The x values.
- indexWhereInserted
- insertedCount
- newXValues
- acceptsUnsortedData
- if set to true the series accepts unsorted data.